package com.ks.utils;

/**
 * 读取属性文件 根据类名反射创建类对象
 * @author 47475
 *
 */
public class Factory {
	public static Object getBean(String name) {
		try {
			String className = Config.properties.getProperty(name);
			return  Class.forName(className).newInstance();
		} catch (Exception e) {
			e.printStackTrace();
			return null;
		}
	}

}
